package util.utilitarioMail;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * @author luciano
 *
 */
public class PropertiesMail extends Properties{
	private static final long serialVersionUID = 1L;
	private static final String ARQUIVO_CONFIGURACAO = "C:\\XMLApplication\\src\\java\\config\\config.properties";

	/**
	 * 
	 */
	public PropertiesMail(){
		try{
			FileInputStream file = new FileInputStream( ARQUIVO_CONFIGURACAO);
			this.load( file );

		}catch(IOException e){
			e.printStackTrace();
		}
	}

	public String getHost(){
		return this.getProperty("pop.hst");
	}

	public String getAccountUser(){
		return this.getProperty("pop.usr");
	}

	public String getAccountPassword(){
		return this.getProperty("pop.pwd");
	}

}
